<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主轴方向的对齐方式</title>
    <style>
        .container {
            display: flex;
            /* justify-content: flex-start; */
            /* justify-content: flex-end; */
            /* justify-content: center; */
            /* 盒子之间的距离相等 */
            justify-content: space-between;
            /* 盒子之间的距离是两侧距离的2倍 */
            /* justify-content: space-around; */
            /* 盒子各个距离都相等 */
            /* justify-content: space-evenly; */
            height: 300px;
            border: 1px solid #000;
        }

        .container div {
            width: 200px;
            background-color: pink;
        }
    </style>
</head>

<body>
    <div class="container">
        <div>1</div>
        <div>2</div>
        <div>3</div>
    </div>
</body>

</html>